# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=gops
pkgver=0.3.10
pkgrel=0
pkgdesc="A tool to list and diagnose Go processes currently running on your system"
url="https://github.com/google/gops"
arch="all !mips64"
license="BSD-3-Clause"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/google/gops/archive/v$pkgver.tar.gz"

build() {
	go build -ldflags "-s -w" -v -o bin/$pkgname
}

check() {
	go test ./...
}

package() {
	install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname
}

cleanup_srcdir() {
	go clean -modcache
	default_cleanup_srcdir
}

sha512sums="f171447cdf33aeeba51c8d04e00bdc32dc002e06bce95470a0771b43384066416ff57aff95ec975a80baad96084dae7d60e38f0684ec224538cf16646b29eba7  gops-0.3.10.tar.gz"
